package kr.pe.osdev.dao;

import java.util.List;

import kr.pe.osdev.domain.Item;
import kr.pe.osdev.domain.Question;

import org.springframework.dao.DataAccessException;

public interface ItemDao {
    public Item add(Item item) throws DataAccessException;
    public Item modify(Item item) throws DataAccessException;
    public Item remove(Item item) throws DataAccessException;
    public int removeByQuestion(Question question) throws DataAccessException;
    public List<Item> findList() throws DataAccessException;
    public List<Item> findListByQuestion(Question question) throws DataAccessException;
    public Item find(Item item) throws DataAccessException;
    public int count() throws DataAccessException;
    public boolean addList(List<Item> itemList);
}